package com.xzm.ticket.controller;

import com.xzm.ticket.service.TicketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 3052
 * @create 2020-09-19 22:33
 */
@RestController
public class TicketController {
    //使用轻量级http通信
    @Autowired
    TicketService ticketService;

    @GetMapping("/ticket")
    public String getTicket(){
        return ticketService.getTicket();
    }
}
